package com.rawchen.model.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.rawchen.entity.Category;
import com.rawchen.entity.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Description: 博客详情
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BlogDetail {
	private Long id;
	/** 文章标题 */
	private String title;
	/** 文章正文 */
	private String content;
	/** 赞赏开关 */
	private Boolean appreciation;
	/** 评论开关 */
	private Boolean commentEnabled;
	/** 是否置顶 */
	private Boolean top;
	/** 创建时间 */
	private Date createTime;
	/** 更新时间 */
	private Date updateTime;
	/** 浏览次数 */
	private Integer views;
	/** 密码保护 */
	private String password;
	/** 文章分类 */
	private Category category;
	/** 文章标签 */
	private List<Tag> tags = new ArrayList<>();
}
